using NewFormatProject.Infrastructure.EFCore;
using NewFormatProject.Infrastructure.Dto.Requests.Objects;
namespace NewFormatProject.Server.Instances.Extends.Requests
{
	public static class EntitySysRightConfigsExtend
{
		public static SysRightConfigs ToEntity(this RequestSysRightConfigsDto dto)
		{
			return new SysRightConfigs
			{
				RcId = dto.id,
				RcName = dto.name,
				RcDescription = dto.description,
				RcIsBan = dto.isBan??0,
				RcIsPublish = dto.isPublish??0,
			};
		}
	}
}
